#ifndef WAYPOINTGANGSTER_H
#define WAYPOINTGANGSTER_H

#include "Controller.h"

class WaypointGangster;

  // used to set new waypoint when needed
  // sets waypointX and waypointY
void newWaypoint( WaypointGangster* w );

class WaypointGangster : public Controller
{
    public:
        static const char WAYPOINTGANGSTERCHAR = 'W';

        static const int TIMERSTART = 100;

        WaypointGangster( Mob* mob = 0 )
            :Controller( mob ),
             waypointX(-1), waypointY(-1)
        {}

        int getWaypointX() const { return waypointX; }
        int getWaypointY() const { return waypointY; }

        void setWaypointX( int i ) { waypointX = i; }
        void setWaypointY( int i ) { waypointY = i; }

        bool action( QKeyEvent* );
        char getType() const { return WAYPOINTGANGSTERCHAR; }
    protected:
    private:
          // current waypoint coordinates
        int waypointX, waypointY;
};

#endif // WAYPOINTGANGSTER_H
